import request from '@/utils/request'

//获取订单列表
export function getOrderList(data){
    return request({
        url:'/order/list',
        method:'post',
        data
    })
}
//保存订单
export function saveOrder(data){
    return request({
        url:'/order/save',
        method:'post',
        data
    })
}
//删除订单
export function deleteOrder(id){
    return request({
        url:'/order/delete?id='+id,
        method:'delete'
    })
}

//发起支付
export function pay(id){
    return request({
        url:'/order/pay?id='+id,
        method:'post'
    })
}